{% extends 'blog/base.html' %}
{% block title %}联系博主{% endblock %}
{% block content %}
    <div class="content-body">
			<div class="container">
				<div class="row">
					<main class="col-md-12">
                        {% if sent %}
						    <h1 class="page-title">已发送，博主收到，会尽快回复的。</h1>
                        {% else %}
						    <h1 class="page-title">联系方式（邮件）</h1>
                        {% endif %}
						<article class="post">
							<div class="entry-content clearfix">
								<form action="{% url 'blog:post_contact' %}" method="post" class="contact-form">
                                    {% csrf_token %}
									<div class="row">
										<div class="col-md-6 col-md-offset-3">
											<input type="text" name="sender" placeholder="名称" required>
											<input type="email" name="send_email" placeholder="邮箱" required>
											<input type="text" name="theme" placeholder="主题" required>
											<textarea name="message_board" rows="7" placeholder="留言" required></textarea>
											<button class="btn-send btn-5 btn-5b ion-ios-paperplane"><span>发送信息</span></button>
										</div>
									</div>	<!-- row -->
								</form>
							</div>
						</article>
					</main>
				</div>
			</div>
		</div>
{% endblock %}


